package org.itboys.seller.entity;

import org.itboys.seller.constant.SellerConstants;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.NotSaved;

/**
 * 店铺相关
 * @author weisky
 *
 * 2016年4月8日
 */
@Entity(value = "Seller", noClassnameStored = true)
public class Seller extends BaseSellerEntity{
	
	private static final long serialVersionUID = -8210092337205154614L;
	
	private String name;//商家名称
	private String linkName;//联系人
	private String linkPhone;//联系电话
	private String freePhone;//400免费电话
	private String[] coordinate;//经纬度坐标  数组长度为2   第一个值代表经度  第二个值代表纬度
	private String address;//商家地址
	private Integer leve = SellerConstants.TYPE_ZERO;//等级
	private Integer credit = SellerConstants.TYPE_ZERO;//信用值
	private Integer integral = SellerConstants.TYPE_ZERO;//积分
	private String mainImg;//主图
	private String desc;//商家描述
	private Integer state = SellerConstants.TYPE_ZERO;//状态  0：录入  1：成功开通  2：冻结  -1：商家退出
	private Long brandId;//品牌ID
	private String brand;//品牌名称
	private String logo;//店铺logo
	private Long provinceId;//省份ID
	private Long cityId;//城市ID；
	private Long districtId;//区ID
	private Long weixinId;//店铺关联的微信ID
	
	@NotSaved
	private String weixinName;//店铺所属的微信名称
	
	
	public String getWeixinName() {
		return weixinName;
	}
	public void setWeixinName(String weixinName) {
		this.weixinName = weixinName;
	}
	public Long getWeixinId() {
		return weixinId;
	}
	public void setWeixinId(Long weixinId) {
		this.weixinId = weixinId;
	}
	public Long getProvinceId() {
		return provinceId;
	}
	public void setProvinceId(Long provinceId) {
		this.provinceId = provinceId;
	}
	public Long getCityId() {
		return cityId;
	}
	public void setCityId(Long cityId) {
		this.cityId = cityId;
	}
	public Long getDistrictId() {
		return districtId;
	}
	public void setDistrictId(Long districtId) {
		this.districtId = districtId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLinkName() {
		return linkName;
	}
	public void setLinkName(String linkName) {
		this.linkName = linkName;
	}
	public String getLinkPhone() {
		return linkPhone;
	}
	public void setLinkPhone(String linkPhone) {
		this.linkPhone = linkPhone;
	}
	public String getFreePhone() {
		return freePhone;
	}
	public void setFreePhone(String freePhone) {
		this.freePhone = freePhone;
	}
	public String[] getCoordinate() {
		return coordinate;
	}
	public void setCoordinate(String[] coordinate) {
		this.coordinate = coordinate;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Integer getLeve() {
		return leve;
	}
	public void setLeve(Integer leve) {
		this.leve = leve;
	}
	public Integer getCredit() {
		return credit;
	}
	public void setCredit(Integer credit) {
		this.credit = credit;
	}
	public Integer getIntegral() {
		return integral;
	}
	public void setIntegral(Integer integral) {
		this.integral = integral;
	}
	public String getMainImg() {
		return mainImg;
	}
	public void setMainImg(String mainImg) {
		this.mainImg = mainImg;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public Long getBrandId() {
		return brandId;
	}
	public void setBrandId(Long brandId) {
		this.brandId = brandId;
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public String getLogo() {
		return logo;
	}
	public void setLogo(String logo) {
		this.logo = logo;
	}
	

}
